<?php

namespace App\Models\Sales;
use App\Models\BaseModel;

/**
 * 售后申请单模型类
 *
 * @author WangBin
 * @date 2021-09-24
 * @package App\Http\Models
 */
class AfterSalesApply extends BaseModel
{
    protected $table = 'b2c_aftersales_apply';
    protected $primaryKey = 'apply_id';
    protected $casts = [
        'images' => 'array'
    ];

    public function items()
    {
        return $this->hasMany('App\Models\Sales\AfterSalesApplyItem', 'apply_id', 'apply_id');
    }
}
